const state = {
  hadUnitIdsData: [], // id 集合
  chooseUnitData: [],
  message: '', //输入框交互的值
  imgMessage: '', //文字识图信息
  chooseUserData: [], //选择承办人员信息
  submitData:{},//提交提案的基本信息
  isGiveUp:false,
};
const getters = {

  hadUnitIdsData: (state) => {
    return state.hadUnitIdsData;
  },
  chooseUnitData: (state) => {
    return state.chooseUnitData;
  },
  getImgMessage: (state) => state.imgMessage,
  getChooseUserData: (state) => state.chooseUserData,
  getMessage: (state) => state.message,
  getSubmitData:(state) => state.submitData,
  getisGiveUpData:(state) => state.isGiveUp
};
const mutations = {
  setGiveUp(state,data){
    state.isGiveUp = data
  },
  // 确定选择单位数据
  _chooseUnitDone(state, data) {
    state.chooseUnitData = data;
  },
  // 已选中的单位数据
  hadUnitDataFunc(state, data) {
    state.hadUnitIdsData = data;
  },
  setImgMessage: (state, data) => state.imgMessage = data,
  setChooseUserData: (state, data) => state.chooseUserData = data,
  setMessage: (state, data) => state.message = data,
  setSubmitData: (state, data) => state.submitData = data,
  
};
const actions = {};

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions,
};
